package com.gxa.web_admin.controller.yxw;
import com.gxa.common.vo.R;
import com.gxa.common.vo.R2;
import com.gxa.modules.service.yxw.LogService;
import io.swagger.annotations.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


import java.util.Map;

@Controller
@Api(value = "日志接口",tags = "日志接口API")
@RequestMapping(value = "/log")

public class LogController {
    @Autowired
    private LogService logService;
    @RequestMapping(value = "/logId",method = RequestMethod.POST)
    @ApiOperation(value = "查询日志接口",notes = "查询日志", response = R.class)
    @ResponseBody
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })

    public R2 selectlog(@RequestBody Map map) {
        System.out.println(map);

        return logService.selectlog(map);
    }

    @RequestMapping(value = "/selectlog",method = RequestMethod.POST)
    @ApiOperation(value = "日志日期查询接口",notes = "日志日期查询", response = R.class)
    @ResponseBody
    @ApiResponses({
            @ApiResponse(code=200,message="请求成功"),
            @ApiResponse(code=404,message="找不到页面"),
            @ApiResponse(code=500,message="后台服务错误")
    })

    public R2 selectlogdate(@RequestBody @ApiParam(name = "selectlog",value = "日志日期查询",required = true)Map map)
    {



        return logService.selectlogdate(map);







     }
}
